#!/bin/bash
all_mysql=(5.7.26 8.0.24)

for ver in ${all_mysql[@]}; do
    dir='mysql/'$ver'/data'
    str='赋予目录'$dir'权限'
    sudo chmod -R o=rwx mysql/$ver/data
    echo $str
done
